/**
 * 
 */
package org.mhz.ootw.tree;

/**
 * @author Mahan
 *
 * Data
 */
public class Data
{
    private String mTitle;     
    
    /**
     * 
     */
    public Data()
    {
        super();
    }

    /**
     * @param aTitle - The title
     */
    public Data(final String aTitle)
    {
        super();
        mTitle = aTitle;
    }

    /**
     * @return Returns the title.
     */
    public String getTitle()
    {
        return mTitle;
    }
    
    /**
     * @param aTitle The title to set.
     */
    public void setTitle(final String aTitle)
    {
        mTitle = aTitle;
    }
    
    /**
     * @return The object as a json string
     */    
    public String jsonString()
    {
        return "{\"title\":\"" + mTitle + "\"}";
    }

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString()
    {
        return "Data [mTitle=" + mTitle + "]";
    }     
}
